package com.brayan.webapp.service.general.i18n;

import javax.ejb.Stateful;
import javax.inject.Inject;

import com.brayan.webapp.model.general.i18n.Language;
import com.brayan.webapp.repository.general.i18n.LanguageRepository;

@Stateful
public class LanguageBean {

	@Inject
	LanguageRepository languageRepo;
	
	public void saveLanguage(String languageCode){
		Language language = new Language();
		language.setLanguageCode(languageCode);
		languageRepo.save(language);
	}
}
